package com.ruoyi.myplayer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.myplayer.mapper.PlayerRankingMapper;
import com.ruoyi.myplayer.domain.PlayerRanking;
import com.ruoyi.myplayer.service.IPlayerRankingService;

/**
 * 排行榜Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
@Service
public class PlayerRankingServiceImpl implements IPlayerRankingService 
{
    @Autowired
    private PlayerRankingMapper playerRankingMapper;

    /**
     * 查询排行榜
     * 
     * @param id 排行榜主键
     * @return 排行榜
     */
    @Override
    public PlayerRanking selectPlayerRankingById(Long id)
    {
        return playerRankingMapper.selectPlayerRankingById(id);
    }

    /**
     * 查询排行榜列表
     * 
     * @param playerRanking 排行榜
     * @return 排行榜
     */
    @Override
    public List<PlayerRanking> selectPlayerRankingList(PlayerRanking playerRanking)
    {
        return playerRankingMapper.selectPlayerRankingList(playerRanking);
    }

    /**
     * 新增排行榜
     * 
     * @param playerRanking 排行榜
     * @return 结果
     */
    @Override
    public int insertPlayerRanking(PlayerRanking playerRanking)
    {
        return playerRankingMapper.insertPlayerRanking(playerRanking);
    }

    /**
     * 修改排行榜
     * 
     * @param playerRanking 排行榜
     * @return 结果
     */
    @Override
    public int updatePlayerRanking(PlayerRanking playerRanking)
    {
        return playerRankingMapper.updatePlayerRanking(playerRanking);
    }

    /**
     * 批量删除排行榜
     * 
     * @param ids 需要删除的排行榜主键
     * @return 结果
     */
    @Override
    public int deletePlayerRankingByIds(Long[] ids)
    {
        return playerRankingMapper.deletePlayerRankingByIds(ids);
    }

    /**
     * 删除排行榜信息
     * 
     * @param id 排行榜主键
     * @return 结果
     */
    @Override
    public int deletePlayerRankingById(Long id)
    {
        return playerRankingMapper.deletePlayerRankingById(id);
    }
}
